<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>后台管理系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">

    <link rel="stylesheet" href="/styles/layui.css" media="all">
    <link rel="stylesheet" href="/styles/common.css"/>
    <script type="text/javascript" src="/styles/js/jquery-1.7.2.js"></script>
</head>
<body class="layui-layout-body" style="width: 100%">
<#include "managerbossmenu.ftl">
<div class="layui-body">
    <!-- 内容主体区域 -->
    <div style="padding: 15px;">
        <div class="content-nav">
            考勤管理 > 管理考勤
        </div>
        <table class="listtable">
            <caption>考勤记录:</caption>
            <tr class="listheader">
                <th>姓名</th>
                <th>个人id</th>
                <th>部门id</th>
                <th>时间</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
            <#if signins??>
                <#list signins as sgn>
                    <tr>
                        <td>${sgn.employeename}</td>
                        <td>${sgn.employeeid}</td>
                        <td>${sgn.departmentid}</td>
                        <td>${(sgn.thetime)?string('yyyy.MM.dd HH:mm:ss')}</td>
                        <td>${(sgn.status==1)?string('缺勤','')}${(sgn.status==2)?string('早退','')}${(sgn.status==3)?string('迟到','')}${(sgn.status==4)?string('其他','')}</td>
                        <td>
                            <a class="clickbutton" href="/managerboss/deletesignin?id=${(sgn.signinid)}">删除</a>
                        </td>
                    </tr>
                </#list>
            </#if>
        </table>
        <#if msg??><div id="error" style="color: red">${msg}</div></#if>

            <div>
            </div>
        </div>

        <div class="layui-footer">
            : 欢迎使用
        </div>
    </div>

    <script>
        function cancelDep(signinid) {
            console.log("signinid : " + signinid);
            $.post("/managerboss/deletesignin","id="+signinid,function () {
                console.log(signinid);
            });
        }
    </script>
</body>
</html>